package Before826.pet;

public class cat extends pet {
    public cat(String name) {
        super(name);
    }
    @Override
    public  String bark(String sounds) {
        System.out.println( getName() + "在" + sounds +"叫");
        return sounds;
    }
    @Override
    public String eat (){
        return  "吃猫粮";
    }
    public void catchMouse(){
        System.out.println("捉住了");
    }

}
